js.underas.controller.Input = new Class({
	"Extends":js.underas.controller.Controller
	,"initialize":function(tipo,valor){
		this.parent('div','<label class="control-label" for="inputIcon_'+this.uid+'">Exemplo</label>'+
			  '<div class="col-xs-12 input-group input-group-sm">'+
			  	'<input class="inputtt form-control cposi_2 cposis" id="inputIcon_'+this.uid+'" type="'+tipo+'" value="'+valor+'">'+			
			  '</div>'); 
		this.getEle().addClass("form-group col-xs-12 col-sm-4 col-md-4");
	}
	,"setIcon":function(p_src){
		if(!this.getEle(".addon1")){
			this.getEle(".input-group").grab(new Element('span',{"class":"input-group-addon addon1 cposi_1 cposis"}),"top");
		}
		this.getEle(".addon1").set("html",'<span class="icon1 glyphicon iconeinput glyphicon-'+p_src+'"></span>');
	}
	,"setAddonText":function(p_txt){		
		if(!this.getEle(".addon1")){
			this.getEle(".input-group").grab(new Element('span',{"class":"input-group-addon addon1 cposi_1 cposis"}),"top");
		}
		this.getEle(".addon1").set("html","").set("text",p_txt);
		
	}	
});
js.underas.controller.InputDouble = new Class({
	"Extends":js.underas.controller.Controller
	,"initialize":function(tipo,valor){
		this.parent('div','<label class="control-label" for="inputIcon_'+this.uid+'">Exemplo</label>'+
		  '<div class="col-xs-12 input-group input-group-sm">'+
		  '<span class="input-group-addon addon1 cposi_1 cposis"></span>'+
		  '<input class="inputtt col-xs-9 form-control cposi_2 cposis" id="inputIcon_'+this.uid+'" type="'+tipo+'" value="'+valor+'">'+
		  '<span class="input-group-addon addon2 imgDown cposi_3 cposis"></span>'+
		  '</div>'); 
		this.getEle().addClass("form-group col-xs-12 col-sm-4 col-md-4");
	}
	,"setIcon":function(psrc,posi){
		var posiI = posi || 1;
		this.getEle(".addon"+posiI).set("html",'<span class="icon'+posiI+' glyphicon iconeinput glyphicon-'+psrc+'"></span>');
	}
	,"setAddonText":function(ptxt,posi){
		var posiI = posi || 1;
		this.getEle(".addon"+posiI).set("html","").set("text",ptxt);
	}
});
